<template>
	<view class="con">
		<view v-for="(item,index) in infolist" @click="navto('advertisement_detail?id='+item.id)" class="flex-a-i mt30">
			<view>
				<image :src="item.image_input[0]" class="wh220-140 ra10"></image>
			</view>
			<view class="ml20">
				<view class="one size30 mt15">{{item.title}}</view>
				<view class="one size25 colorB8B8B8 mt5">{{item.synopsis}}</view>
				<view class="size20 colorB8B8B8 mt5">{{item.add_time}}</view>
			</view>
		</view>
	</view>
</template>


<script>
	export default {
		data() {
			return {
				page:1,
				infolist:[]
			}
		},
		onReachBottom() {
			this.page++
			this.getlist()
		},
		onLoad(option) {
			this.getlist()
		},
		methods: {
			getlist(){
				this.http('/article/list/3',{limit:15,page:this.page}).then(res=>{
					this.infolist = [...this.infolist,...res.data]
				})
			}
		}
	}
</script>

<style>

</style>
